﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using vgo_vs01.Models;
using vgo_vs01.Models.DoiTuong;

namespace vgo_vs01.Controllers
{
    public class VatPhamController : Controller
    {
        //
        // GET: /VatPham/

        public ActionResult Index()
        {
            return View();
        }
        //public ActionResult Layds()
        //{ }
        public ActionResult Layds()
        {
            VatPhamModels VpMd = new VatPhamModels();
            List<VatPham> dsvp = new List<VatPham>();
            dsvp = VpMd.LayVatPham();
            ViewData["dsvp"] = new SelectList(VpMd.LayVatPham(), "MaVatPham", "TenVatPham");
            return View();
        }

    }
}
